$(function () {
    var _secuAccounts;//所有的外证账户
    //交易查询页面加载时 初始化证券账户下拉框
    $.ajax({
        async:false,
        type:"GET",
        url:"/transaction/index",
        dataType:"json",
        success:function (result) {
            _secuAccounts = result;
            for (var i = 0; i < _secuAccounts.length; i++){
                var secuCode = _secuAccounts[i].secuCode;
                var secuName = _secuAccounts[i].secuName;
                $("#secu").append("<option value=\""+secuCode+"\">"+secuCode+" "+secuName+"</option>")
            }
        }
    })
});